package com.oe.market.modules.base.model.mapper;

import com.oe.market.modules.base.model.bean.Account;
import com.oe.market.modules.base.model.dto.*;

public class AccountMapper {
    Account account;

    AccountMapper(Account account) {
        this.account = account;
    }
    public AccountMapper(AccountDto accountDto) {
        this.account = new Account(0,
                accountDto.phone,
                accountDto.user,
                accountDto.password,
                accountDto.source,
                null,
                null,
                accountDto.currentSign,
                null,
                null);
    }

    public Account getAccount() {
        return account;
    }
}
